﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Test_QianBZ.Models;
using Test_QianBZ.Repository;
namespace Test_QianBZ.Domain
{
    public class PersonDomain
    {
        public PersonModel GetPerson(int personId)
        {
            return (new PersonRepository()).GetPerson(personId);
        }

        public List<PersonModel> GetAllPerson()
        {
            return (new PersonRepository()).GetAllPerson();
        }

        public int AddPerson(string personName)
        {
            return (new PersonRepository()).AddPerson(personName);
        }
    }
}
